﻿using Cms.Core.Infrastructure.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Cms.Core.Application.Service.RoleInfo.Dto
{

    /// <summary>
    /// 角色Dto
    /// </summary>
    public class RoleDto : EntityDto
    {
        /// <summary>
        /// 名字
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int OrderSort { get; set; } = 0;

        /// <summary>
        /// 是否禁用
        /// </summary>
        public bool IsEnabled { get; set; }


        /// <summary>
        /// 是否管理员
        /// </summary>
        public bool IsAdmin { get; set; }

        /// <summary>
        /// 权限ID
        /// </summary>

        [NotMapped]
        public IEnumerable<Guid> PermissionIds { get; set; } = new List<Guid>();



    }
}
